package com.geektime.hello;

import cn.hutool.bloomfilter.BitMapBloomFilter;
import cn.hutool.bloomfilter.BloomFilter;
import cn.hutool.extra.emoji.EmojiUtil;

/**
 * @Author: DRevelation
 * @Date: 2021/1/20 17:17
 */
public class HutoolDemo2 {
    public static void main(String[] args) {
        emoji();
    }

    private static void emoji() {
        String emoji = EmojiUtil.toUnicode(":smile:");
        System.out.println("emoji = " + emoji);
    }

    private static void bloomFilter() {
        BloomFilter bloomFilter = new BitMapBloomFilter(10);
        bloomFilter.add("123");
        bloomFilter.add("abc");
        bloomFilter.add("ddd");
        System.out.println(bloomFilter.contains("abc"));
    }
}
